<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>React05</title>
  <style>
    .title {
      font-size: 24px;
      color: orange;
    }
  </style>

</head>

<body>
  <div class="container"></div>

  <!-- react核心库 -->
  <script src="./js/react.development.js"></script>
  <!-- react拓展库 用于支持react操作dom -->
  <script src="./js/react-dom.development.js"></script>
  <script src="./js/babel.min.js"></script>
  <script type="text/babel">
    const frame = ['Vue', 'React', 'Angular']

    const vdom = (
      <div>
        <h2 className="title">前端框架</h2>
        <ul>
          { frame.map((item,i) => <li key={i}>{item}</li>) } 
        </ul>
      </div>
    )

    ReactDOM.render(vdom, document.querySelector('.container'))
  </script>
</body>

</html>